package com.luochen.cdpt.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Auther: star
 * @Date: 2018/12/16 11:02
 * @Description:
 */
public class DateUtils {

    public static Date getDate(String date){
        try {
            return new SimpleDateFormat("yyyy-MM-dd").parse(date);
        }catch (Exception e){
            e.printStackTrace();
        }
        return new Date();
    }
}
